home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / educate / testsh.zip / CREATEST.BAS (.txt) < prev    next >
QuickBASIC Tokenized Source  |  1996-09-18  |  57KB  |  563 lines

  1. AWAITKEY
  2. MENUn
  3. ERRORHANDLER
  4. GETA1
  5. LS10*
  6. LS112
  7. LS12:
  8. LS13B
  9. LS14J
  10. LS15R
  11. LS16Z
  12. LS17b
  13. LS18j
  14. LS19r
  15. LS20z
  16. LS29g
  17. GG101
  18. GG119
  19. GG12A
  20. GG13I
  21. GG14Q
  22. GG15Y
  23. GG16a
  24. GG17i
  25. GG18q
  26. GG19y
  27. GG30$
  28. GG316
  29. GG320
  30. GETANOTHERe
  31. E120o
  32. DISPLAYx
  33. NULL_
  34. CHOICE
  35.     AWAITKEY2
  36. QUIT,
  37. ENTERITG
  38. RETRIEVEIT
  39. MENU1
  40. MENU2x
  41. SKIP1
  42. SKIP2%
  43. GETANOTHER2
  44. RDT36
  45. SKIP3
  46. COLOER
  47. CRSLIN
  48. PICK2 
  49. RDT6?
  50. RDT8r
  51. RDT10
  52. RDT11
  53. RDT12U
  54. SAVE2
  55.     SHAREWARE
  56. SHARWARE
  57. SHARWARE.002N
  58. SHAREWARE2F
  59. RD10T
  60. HPRINTe
  61. COMMANDS
  62. HOLDTHEN
  63. PRINTIT
  64. DISPLAY2(
  65. HOLDCODE
  66. TANDF>
  67. HEADER!
  68. NOT58
  69. IFLPRINT
  70.     SKIPLINE1)
  71.     SKIPLINE2
  72.     SKIPLINE3
  73.     SKIPLINE5
  74.     SKIPLINE4
  75. TALLYG
  76. SKIPHEADER3
  77. SKIPHEADER2P
  78. SKIPHEADER1^
  79. SKIPSPACES
  80. ADVANCE
  81. ANOTHERe    
  82. LOCATE14<    
  83. HELP6    
  84. CTHEN[    
  85. THENLOCATE
  86. SKIPNEXT
  87. UNKNOWN
  88. RDTXe
  89. FILLw    
  90. SKIPTESTSCREEN
  91. CHANGETYPE
  92. NUMBERITS    
  93. MOVE1
  94. HELP1
  95. entered
  96. version
  97. version.
  98. RETAIN
  99. PRTQ2
  100. PRTQ3
  101. PRTQ4
  102. PRTQ5
  103. PRTQ1;
  104. PRT13
  105. PRTQ6
  106. PRTQ7Y
  107. PRTQ8_
  108. PRTQ9
  109. PRTQ10
  110. PRTQ11
  111. PRTQ125
  112. CETURNB
  113. ANSWERSO
  114. ANWERS
  115. PRINTIT2+
  116. ANSWERS2
  117. SKIPSPACES2
  118. SKIPHEADER12
  119. SKIPLINE12
  120. SKIPHEADER22
  121. SKIPLINE22
  122. SKIPLINE32
  123. SKIPHEADER32
  124. HEADER2y
  125. SKIPLINE42
  126. PRINTANSWERPAGE
  127. PRINTANSWERPAGENO
  128. BLANKS
  129.     QUESTIONS]
  130. TIMETHROUGH
  131. PRINTIT3m
  132. TIMESTHROUGH
  133. TIMESTHRHOUGH
  134. TIMESTHROUGH1(
  135. TYPE2
  136. FF11I
  137. FF12g
  138. PRTQ13q
  139. PRTQ14{
  140. PRTQ15
  141. PRTQ16
  142. PRTQ17
  143. PRTQ18Z
  144. PRTQ19
  145. PRTQ20
  146. PRTQ21
  147. PRTQ22
  148. PRTQ23
  149. PRTQ24
  150. PRTQ25
  151. PRTQ26
  152. PRTQ27
  153. PRTQ28
  154. AA12A
  155. BB10Q
  156. BB11X
  157. DD12F
  158. EE10V
  159. EE11^
  160. EE12e
  161. HRETURNG
  162. II10'
  163. II11.
  164. II12C
  165. IRETURNn
  166. JJ10~
  167. LL10,
  168. LL113
  169. LL12s
  170. NN12!
  171. OO101
  172. OO118
  173. OO12x
  174. QQ12&
  175. RR106
  176. RR11=
  177. RR12}
  178. TT12+
  179. UU10;
  180. UU11B
  181. WW12)
  182. XX109
  183. XX11@
  184. ZZ128
  185. AAA1A
  186. AAA2Z
  187. AAA3b
  188. AAA4j
  189. AAA6r
  190. AAA7z
  191. AAA10J
  192. AAA11R
  193. AAA12
  194. BBB4L
  195. BBB9)
  196. BBB100
  197. BBB11a
  198. BBB12
  199. BBB6>
  200. ADVANCE2
  201. TALLY2
  202. FALSE
  203. MULTIPLE
  204. VT12n
  205. TIMESVTHROUGH
  206. VTVT1
  207. VTVT2
  208. VTVT3
  209. VTVT4
  210. TALY2
  211.     SKIPRESET
  212. RESET
  213. NEWNAME1
  214. RESETIT
  215. RESET2d
  216. REENTER
  217. COPYQ
  218. COPYS[
  219. REVERT
  220. SKIPPRTQ
  221. ANSWERS3
  222. MOREA
  223. MOREA2
  224. HOLDNO2
  225.     SKIPNULL2
  226. THEEND
  227. PLEASE
  228.     PUTITHERE
  229. NGOTO
  230. THEEND20
  231. DESKJET
  232. MATRIX
  233.     WHICHTYPE
  234. WHICHTYPE2
  235. PRINTER
  236. NUMPAGE
  237. ENDPAGE
  238. establishes upper case mode.
  239. reserves memory address in which to save the records.,
  240. ADVER.001"
  241. ADVER.002"
  242. ADVER.003"
  243. ADVER.004"
  244. ADVER.005"
  245.  following routine gives user the option of choosing to QUIT, pressq
  246. 1 to enter new questions, or pressing 2 to retrieve, print or alter records.
  247. coming to this point, from any other routine in the program, will null the
  248. values of all strings, via the CLEAR command.i
  249. RGTESTS.MEN"
  250.  routine comes here when user selects 1, on the menu, to enter new questions.e
  251. TESTFILL.000
  252. rems for the T1 through T12 labels.e
  253.  data is typed, and enter is pressed.  T1$ thru T12$ values are established,
  254. as are the RDT1 thru RDT12 string values.  If H is pressed the routine will,
  255. access the HELP screens, and then return to the point of origin.   If BU is,
  256. pressed, the cursor backs up 1 line, to the 1st previous line that deals with
  257. the specific question type selected.  If N is typed, you route back to the
  258. screen where you entered the Retrieval criteria.  If S is typed you will access
  259. the save options menu. The 1st 3 lines can not be left blank, and a routinec
  260. is established that both prevents this and warns the user.  Pressing Q will Quit,
  261. pressing M accesses the main Menu, and SPACE & ENTER will void a line of any
  262. previously existing data, with the exception of lines 1, 2, and 3.  If the user
  263. leaves the screen by N, M, or Q, prior to saving the data with S, then it is
  264. as though the user had never accessed the screen in the first place. Pressing
  265. BU, to back up 1 line at a time, or press ing S or H, in no way affects anyn
  266. data that might previously have existed on the line where there commands were given.
  267.   RECORD #
  268.  TOO LONG 
  269. __________  
  270. NEED NAME"
  271. __________
  272. NEED NAME"
  273. __________
  274.           
  275.                             
  276. TRUE AND FALSE!"
  277. MULTIPLE CHOICE!
  278. FILL IN THE BLANKS!"
  279.  TOO LONG 
  280. ______________________________________________________________________     "
  281. ________________________________________________________________________
  282.                                                                         
  283. TRUE AND FALSE!"
  284. MULTIPLE CHOICE!
  285. FILL IN THE BLANKS!"
  286.   RECORD #
  287.  TOO LONG 
  288. ________________________________________________________________________    
  289. ________________________________________________________________________
  290.                                                                         
  291.  TOO LONG 
  292. ________________________________________________________________________    
  293. ________________________________________________________________________
  294.                                                                         
  295.  TOO LONG 
  296. ____________________ "
  297. ____________________
  298.                     
  299.  TOO LONG 
  300. ____________________ "
  301. ____________________
  302.                     
  303.  TOO LONG 
  304. ____________________ "
  305. ____________________
  306.                     
  307.  TOO LONG 
  308. ___       
  309.  TOO LONG 
  310. ____________________ "
  311. ____________________
  312.                     
  313.  TOO LONG 
  314. ____________________ "
  315. ____________________
  316.                     
  317.  TOO LONG 
  318. ____________________ "
  319. ____________________
  320.                     
  321.  prints save options menu to the screen.
  322.    S = SAVE - R = REDO    
  323.    Q = QUIT - M = MENU    
  324.  allows user to select Q, M, or S from the save menu.t
  325. next 2 lines erases the save menu options from the screen.
  326.                           
  327.                           
  328. routes cursor back to 1st line,s
  329. with no change in the text on the screen
  330.  routine routes here when retrieving, and the user then enters
  331. the identification (retrieval criteria), for which it will search.
  332. RETRIEVE.001
  333. the temp1 simply is used to give the correct length to the retrieval criteria,
  334. so that it can accurately compare to the length of the retrieved string, toi
  335. to which it will be compared.p
  336. TEMP1"d
  337. TEMP1"d
  338.  gives value of N1$ to ID2$, because the value of NN1$ will be cleared
  339. in the next line because of the CLOSE statement.
  340. TESTS.REC"d
  341.  establishes a length for max characters allowed in the field for the record. 
  342. ?         
  343.  gives a value to UNKNOWN$ so that it can be used to control
  344.  routines correctly, when retrieval was done with the ? entry.
  345.  routes back here to continue to search when CODE% has been given a 
  346. new value, as the result of pressing the arrow keys, etc., not as a result of accessing the NEXT CODE% phrase below.
  347.  THIS DATA BASE NAME COULD NOT BE FOUND IN THE FILE 
  348. routes back to continue searching for matching records.l
  349.  establishes a value for HOLD% that is equal to CODE%, which, in this
  350. case, is the CODE% value that identifies the last legitimate record number that was
  351. found to match the retrieval criteria.  Then when the CODE% has been changed, etc, duringv
  352. searching, etc, you can revert the active CODE% back to the last legitimate record
  353. displayed, by giving CODE% the value of HOLD%.
  354. DISPLAY.001"
  355.  the following lines give the values of the retrieved F strings, to thee
  356.  normal operational strings of T and RDT, for each of the data input lines.e
  357.  then they establish a color, and print these values to the display.001 screen.l
  358. next 2 lines alter the value of the QNO!, each time the routine routes through here.
  359. the value of QNO! is the successive numbering of the records that are retrievable,
  360. for a given T1$ retrieval criteria. 
  361.  gives a starting value to the QN0! 
  362.  next line prints record number to top area of screen, when altering.Q
  363.  next line prints ALL RECORDS to screen, if retieval criteria is ?, which makes UNKNOWN$ = "1", and skipts the normal printing of the T1$ value.
  364. FOR ALL RECORDS"
  365.  next line prints the normal value of the T1$ to the screen, when retrieval has not been via the ? for the retrieval criteria.
  366.  prints the identification string on the
  367.  correct line, when altering a record.
  368. following lines take the F$ values (saved strings), and converts them, bya
  369. removing the blanks.  In this manner they can be more easily handled.,
  370. TRUE AND FALSE!"
  371. MULTIPLE CHOICE!
  372. FILL IN THE BLANKS!"
  373.  when user is altering, the program uses the display commands again.
  374.  but then routes back to the 1st line of the screen, instead of terminating at the COMMANDS point.
  375.  the point in the program where the user chooses to browse with arrows,a
  376.  press N, M, P, A, or Q, or C to access the alteration mode, or press # to makee
  377.  their final page # print, if they were printing with the P key, selectively.k
  378.  routes to print routine, automatically, when printing with the A key,
  379. so that all records, that match the retrieval criteria, will print in succession.h
  380. DONE! TYPE # TO NUMBER PAGE"
  381.  TEST COMPLETED! RETURN TO   "
  382.  MENU    , IF PRINTING MORE! "
  383.  ENTER CLEARS THIS PROMPT!   "
  384.                              "
  385.                              "
  386.                              "
  387.                            "
  388. THE PAGE IS NUMBERED!"
  389.                            "
  390.                          ***** RETRIEVAL SCREEN *****                           
  391. THE PAGE IS NUMBERED!"
  392.                             
  393.  next line prevents the user from printing ALL, if they used the ? to retrieve..
  394.    TO END YOUR TEST & NUMBER THE PAGE, PRESS SHIFT & 3, AND FOLLOW THE PROMPTS! 
  395. ALTER.000"
  396.   SAVING  
  397.    DATA   
  398. the next line prevents the program from closing, and re-opening the file,,
  399. when it must obviously already be open, if COM$ = "C".  If it was allowed to
  400. close, then all string values would be lost.
  401. DATA.DATd
  402. 12121"
  403. TESTS.REC"d
  404.  return point when code% values have been changed by the COM$ value.
  405. limits the question input to 20, in shareware version.
  406. the next line stops the file from closing, if user is altering and has just saved.
  407. it also gives the value of F1$ ( the retrievable string) the value of ID2$, just in
  408. case the user changed the retrievable string, during their alterations.  This is
  409. necessary because otherwise the value of ID2$ (for the existing code%), would not match 
  410. the altered value for F1$, which was just saved, causing the computer to lockup.
  411.    DATA   
  412.   SAVED   
  413. following line null all data strings, except for T1$, T2$ and T3$, BLOADS the testfill.000 screen,
  414.  re-inserts the string data for T1, T2, and T4, and then returns the cursor to the
  415. T4 location, where the user can immediately start typing a new question, or they
  416. can BACKUP, if they desire to change the question type, subject data indicationy
  417. or the indentification name or number, etc.e
  418. TESTFILL.000
  419.           
  420.                                                                         
  421.  quits program and returns to DOS.
  422.  alerts user to printer being off line.T
  423.  CHECK PRINTER "
  424.                 
  425. routes here when 20 questions have been entered in shareware version.r
  426. SHARWARE.001
  427.  routes here so display address screen, once 20 questions have beenh
  428.  entered, and the 1st sharware alert screen has been displayed, in shareware version.
  429. SHARWARE.002
  430.  routes to error routine if printer is off line, for some reason.
  431.  see skipspaces
  432.  skips the printing of 3 blank lines, if a pages main header has already been printed.
  433.  the routine resets, when a new page is started.
  434.                            TRUE AND FALSE QUESTIONS !"
  435. DATA: 
  436.  see skipheader3
  437.        "
  438.                           MULTIPLE CHOICE QUESTIONS !"
  439. DATA: 
  440.  see skipheader3
  441.                                                                         
  442.        "
  443.  see skipline4
  444.            A - "
  445.                     
  446.            B - "
  447.            C - "
  448.  see skipline4
  449.                          FILL IN THE BLANKS QUESTIONS !"
  450. DATA: 
  451.  skips the printing of a new header, if the question type is the same as the previous one was.
  452.  next 2 lines controls the positioning of the print for the question,,
  453.  so that another space is provided when the NO! reaches 10.  this linesn
  454.  up the text on the page, so that it is even.O
  455.                                                                         
  456.        "
  457. comes here, skipping the above line, if second line of the question is blank. 
  458. this prevents the printing of an empty line.
  459.  goes to auto-advance routine, when the
  460.  56th or 49th line has been reached. depending on printer type
  461. routes back in program toe
  462. a point where it will continue to search for records matching the retrievalt
  463. criteria, and print them. The routine now has a value for CODE% that is onet
  464. greater than when it arrived at this line.
  465. routes back in program to a point where the
  466. computer will await another command, to print a different record, browse, etc.
  467.  auto-advances the page, prints the page number, and positions the
  468.  page ready for data from the next questions.n
  469.                    QUESTIONS  -  PAGE #"
  470. OF TEST - 
  471.                    QUESTIONS  -  PAGE #"
  472. OF TEST - 
  473.                    QUESTIONS  -  PAGE #"
  474. OF TEST - 
  475.  routine to display the 2 help screens, and then return to the point of
  476.  origin, where it displays the same screen, replaces all data, and puts
  477.  the cursor on the line that was the point of origin.a
  478. HELP.000
  479. HELP.001
  480. TESTFILL.000
  481. TRUE AND FALSE!"
  482. MULTIPLE CHOICE!
  483. FILL IN THE BLANKS!"
  484.  nulls the strings that no longer apply to a chosen question type
  485.  and reprints the dashes.
  486. ____________________
  487. ____________________
  488. ____________________
  489. ____________________
  490. ____________________
  491. ____________________
  492.  routine to place a number at the bottom of the page, when a person
  493.  is printing with the A key, and ends up in the middle of a page.p
  494.                    QUESTIONS  -  PAGE #"
  495. OF TEST - 
  496. allows user to choose whether or not to print an answer page for the last question page printed.
  497. TEST COPIES PRINTED: "
  498.  WOULD YOU LIKE ANOTHER COPY OF THE TEST "
  499.  QUESTIONS THAT YOU JUST PRINTED  Y/N?   "
  500. next 2 lines erases the answer page options from the screen.
  501.                                          "
  502.                                          "
  503.                            "
  504.  ANSWER COPIES PRINTED: 
  505.     PRINT THIS PAGES ANSWER SHEET Y/N?   "
  506.  IF NOT, THIS PAGES ANSWER DATA IS LOST! "
  507. next 2 lines erases the answer page options from the screen.
  508.                                          "
  509.                                          "
  510.                            "
  511.  routine to convert all strings AA through BBB to VT strings again.
  512.  see skipspaces
  513.  skips the printing of 3 blank lines, if a pages main header has already been printed.
  514.  the routine resets, when a new page is started.
  515.                           TRUE AND FALSE ANSWERS !
  516. DATA: 
  517.  see skipheader32
  518.                           MULTIPLE CHOICE ANSWERS !"
  519. DATA: 
  520.  see skipheader32 
  521.                                                                         
  522.  see skipline42 
  523.         A - 
  524.         B - 
  525.         C - 
  526.  see skipline42k
  527.                           FILL IN THE BLANKS ANSWERS !
  528. DATA: 
  529.  skips the printing of a new header, if the question type is the same as the previous one was.
  530.  next 2 lines controls the positioning of the print for the question, 
  531.  so that another space is provided when the NO! reaches 10.  this lines
  532.  up the text on the page, so that it is even.O
  533.                                                                         
  534.        "
  535. comes here, skipping the above line, if second line of the question is blank.i
  536. this prevents the printing of an empty line.
  537.        (
  538. ) - ("
  539. ) - ("
  540. adds 1 to value of timesthrough! each pass, to accomodate the conversion of the A through L strings to T strings.L
  541.               ANSWERS FOR PAGE #
  542.  OF TEST - "
  543. RESET.000"
  544.  TOO LONG 
  545. __________  
  546.      "
  547.       
  548.        "
  549.         
  550.          "
  551.           
  552.   THIS QUESTION IS TOO LONG !!  
  553.  RE-ENTER AFTER ANSWERS PROMPT! 
  554.                                 
  555.                                 
  556.  ANSWER COPIES PRINTED: 
  557.   DO YOU WANT TO PRINT ANOTHER  
  558.  COPY OF THIS PAGES ANSWERS Y/N?
  559.                                 
  560.                                 
  561.                            "
  562. PICKPRTR.000
  563.